package org.foreveross.que.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Transient;

import org.hibernate.search.annotations.Boost;
import org.hibernate.search.annotations.DocumentId;
import org.hibernate.search.annotations.Field;
import org.hibernate.search.annotations.Index;
import org.hibernate.search.annotations.Indexed;

import org.hibernate.search.annotations.Store;


/**
 * The persistent class for the fb_subject database table.
 * 
 */
@Indexed
@Entity
@Table(name="fb_topic")
public class TopicEntity extends org.foreveross.que.infra.base.ddd.domain.BaseEntity implements Serializable  {
	private static final long serialVersionUID = 1L;
	@DocumentId
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	private String id;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="create_time")
	private Date createTime;

	@Column(name="create_account")
	private String createAccount;
	
	@Column(name="create_uname")
	private String createUname;
	
	@Column(name="create_urole")
	private String createUrole ;

	@Column(name="is_stickie")
	private Integer isStickie;

	@Field(index=Index.YES,store=Store.YES)
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="last_time")
	private Date lastTime;

	private String mid;

	@Column(name="reply_count")
	private Integer replyCount;

	@Column(name="reply_id")
	private String replyId;
	
	@Column(name="reply_account")
	private String replyAccount;

	@Column(name="reply_role")
	private String replyRole;
	
	@Column(name="reply_info")
	private String replyInfo;

	@Column(name="reply_name")
	private String replyName;

	private Integer state;
	
	@Field(index=Index.YES,store=Store.YES)
	@Column(name="subject_info")
	private String subjectInfo;
	
	@Column(name="sys_type")
	private String sysType;
	
	@Column(name="browse_count")
	private Integer browseCount;
	
	@Field(index=Index.YES,store=Store.YES)
	private String title;
	

	
	public TopicEntity() {
	}

	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}


	public Integer getIsStickie() {
		return this.isStickie;
	}

	public void setIsStickie(Integer isStickie) {
		this.isStickie = isStickie;
	}

	public Date getLastTime() {
		return this.lastTime;
	}

	public void setLastTime(Date lastTime) {
		this.lastTime = lastTime;
	}

	public String getMid() {
		return this.mid;
	}

	public void setMid(String mid) {
		this.mid = mid;
	}

	public String getCreateUname() {
		return createUname;
	}

	public void setCreateUname(String createUname) {
		this.createUname = createUname;
	}

	public Integer getReplyCount() {
		return this.replyCount;
	}

	public void setReplyCount(Integer replyCount) {
		this.replyCount = replyCount;
	}



	public String getReplyAccount() {
		return replyAccount;
	}

	public void setReplyAccount(String replyAccount) {
		this.replyAccount = replyAccount;
	}

	public String getReplyInfo() {
		return this.replyInfo;
	}

	public void setReplyInfo(String replyInfo) {
		this.replyInfo = replyInfo;
	}

	public String getReplyName() {
		return this.replyName;
	}

	public void setReplyName(String replyName) {
		this.replyName = replyName;
	}
	
	

	public String getReplyRole() {
		return replyRole;
	}

	public void setReplyRole(String replyRole) {
		this.replyRole = replyRole;
	}

	public Integer getState() {
		return this.state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	public String getSubjectInfo() {
		return this.subjectInfo;
	}

	public void setSubjectInfo(String subjectInfo) {
		this.subjectInfo = subjectInfo;
	}

	public String getSysType() {
		return sysType;
	}

	public void setSysType(String sysType) {
		this.sysType = sysType;
	}

	public Integer getBrowseCount() {
		return browseCount;
	}

	public void setBrowseCount(Integer browseCount) {
		this.browseCount = browseCount;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getCreateAccount() {
		return createAccount;
	}

	public void setCreateAccount(String createAccount) {
		this.createAccount = createAccount;
	}

	public String getCreateUrole() {
		return createUrole;
	}

	public void setCreateUrole(String createUrole) {
		this.createUrole = createUrole;
	}

	public String getReplyId() {
		return replyId;
	}

	public void setReplyId(String replyId) {
		this.replyId = replyId;
	}
	
}